Skip to content

Conversation

@kkewwei
Copy link

@kkewwei kkewwei commented Oct 28, 2025

Description

The Dashboard currently uses the :/_search endpoint to retrieve indices from CCS clusters, a compatibility measure for Elasticsearch versions prior to 7.10. For later versions, the RestResolveIndexAction interface is supported and can fully replace the :/_search endpoint.

This means the :/_search endpoint can be removed from the Dashboard code without impacting functionality in this scenario.

Issues Resolved

closes #8596

Screenshot

Testing the changes

Changelog

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

@github-actions
Copy link
Contributor

ℹ️ Manual Changeset Creation Reminder

Please ensure manual commit for changeset file 10816.yml under folder changelogs/fragments to complete this PR.

If you want to use the available OpenSearch Changeset Bot App to avoid manual creation of changeset file you can install it in your forked repository following this link.

For more information about formatting of changeset files, please visit OpenSearch Auto Changeset and Release Notes Tool.

@kkewwei
Copy link
Author

kkewwei commented Oct 28, 2025

It seems that I should delete the method getIndicesViaSearch as well.

@kkewwei kkewwei changed the title Fix Creating index-patterns with ccs causes search threadPool to be exhausted Fix creating index-patterns with ccs causes search threadPool to be exhausted Oct 28, 2025
@github-actions
Copy link
Contributor

❌ Changeset File Not Added Yet

Please ensure manual commit for changeset file 10816.yml under folder changelogs/fragments to complete this PR. File still missing.

@codecov
Copy link

codecov bot commented Oct 28, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 60.53%. Comparing base (d3c5461) to head (5ca1a59).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10816      +/-   ##
==========================================
- Coverage   60.56%   60.53%   -0.04%     
==========================================
  Files        4516     4516              
  Lines      121508   121485      -23     
  Branches    20300    20295       -5     
==========================================
- Hits        73597    73541      -56     
- Misses      42749    42788      +39     
+ Partials     5162     5156       -6     
Flag Coverage Δ
Linux_1 26.58% <ø> (ø)
Linux_2 38.87% <ø> (ø)
Linux_3 39.05% <100.00%> (-0.03%) ⬇️
Linux_4 ?
Windows_1 26.59% <ø> (ø)
Windows_2 38.85% <ø> (ø)
Windows_3 39.05% <100.00%> (-0.03%) ⬇️
Windows_4 33.61% <ø> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Hailong-am
Copy link
Collaborator

Hailong-am commented Oct 29, 2025

There has another place have same logic, we might need remove it as well.

src/plugins/dataset_management/public/components/create_dataset_wizard/lib/get_indices.ts

Also, could you share screenshot when you delete this, CCS is still working as expected?

@kkewwei
Copy link
Author

kkewwei commented Oct 29, 2025

@Hailong-am Thank you for your review.

I have deleted the same logic.

Your code changes are welcome! Since I’m unfamiliar with Dashboards, I’ve seen your modifications but not yet fully understood their purpose. To proceed with updates in fix_8596, I’ll temporarily move your changes to fix_8596_backup.

@kkewwei
Copy link
Author

kkewwei commented Oct 29, 2025

Also, could you share screenshot when you delete this, CCS is still working as expected?

We fix it in opendistro710, it's ok with ccs.
image

…xhausted

Signed-off-by: kkewwei <[email protected]>
Signed-off-by: kkewwei <[email protected]>
Signed-off-by: kewei.11 <[email protected]>
Signed-off-by: kkewwei <[email protected]>
Signed-off-by: kkewwei <[email protected]>
Signed-off-by: kewei.11 <[email protected]>
Signed-off-by: kkewwei <[email protected]>
Signed-off-by: kewei.11 <[email protected]>
Signed-off-by: kkewwei <[email protected]>
Signed-off-by: kewei.11 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Creating index-patterns causes search threadPool to be exhausted

2 participants